package com.cdck.safe.dete.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cdck.safe.dete.model.entity.Community;
import com.cdck.safe.dete.model.query.BaseKeywordsQuery;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

/**
 * (Community)表服务接口
 *
 * @author wp
 * @since 2024-02-26 23:00:52
 */
public interface CommunityService extends IService<Community> {


    /**
     * 分页列表
     *
     * @return
     */
    IPage<Community> queryByPage(BaseKeywordsQuery queryParams);


    /**
     * 获取表单数据
     *
     * @param id
     * @return
     */
    Community getCommunityFormData(Long id);

    /**
     * 新增数据
     *
     * @param community Community对象
     * @return
     */
    boolean saveCommunity (Community community);

   /**
     * 修改数据
     *
     * @param id   id
     * @paramcommunity Community对象
     * @return
     */
    boolean updateCommunity(Long id, Community community);

    /**
     * 删除数据
     *
     * @param idsStr id,多个以英文逗号(,)分割
     * @return
     */
    boolean deleteCommunitys(String idsStr);

}
